package fr.univlille1.rmi;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.util.HashSet;

public class Client {

	public static void main(String[] args) {
		byte[] data = {1,2,3};
		try {
			SiteItf root = (SiteItf) Naming.lookup("4");
			root.listen(data, new HashSet<SiteItf>());
		} catch (MalformedURLException e){
			e.printStackTrace();
		} catch (RemoteException e) {
			e.printStackTrace();
		} catch (NotBoundException e) {
			e.printStackTrace();
		}
	}

}
